﻿

using System;

namespace MinConsole.Gaf.Model
{
    public partial class AppInstSettings
    {


        #region FieldsAndProps

        #region AppInstSettingsId

        private short _AppInstSettingsId;
        public short AppInstSettingsId
        {



            get { return _AppInstSettingsId; }



            set { _AppInstSettingsId = value; }
        } //eof prop AppInstSettingsId

        #endregion AppInstSettingsId



        #region AppName

        private string _AppName;
        public string AppName
        {



            get { return _AppName; }



            set { _AppName = value; }
        } //eof prop AppName

        #endregion AppName



        #region CultureInfo

        private string _CultureInfo;
        public string CultureInfo
        {



            get { return _CultureInfo; }



            set { _CultureInfo = value; }
        } //eof prop CultureInfo

        #endregion CultureInfo



        #region CurrencyDecimalDigits

        private int? _CurrencyDecimalDigits;
        public int? CurrencyDecimalDigits
        {



            get { return _CurrencyDecimalDigits; }



            set { _CurrencyDecimalDigits = value; }
        } //eof prop CurrencyDecimalDigits

        #endregion CurrencyDecimalDigits



        #region FlagEncryptErrorMessages

        private bool? _FlagEncryptErrorMessages;
        public bool? FlagEncryptErrorMessages
        {



            get { return _FlagEncryptErrorMessages; }



            set { _FlagEncryptErrorMessages = value; }
        } //eof prop FlagEncryptErrorMessages

        #endregion FlagEncryptErrorMessages



        #region GuiLanguage

        private string _GuiLanguage;
        public string GuiLanguage
        {



            get { return _GuiLanguage; }



            set { _GuiLanguage = value; }
        } //eof prop GuiLanguage

        #endregion GuiLanguage



        #region LogLevel

        private int? _LogLevel;
        public int? LogLevel
        {



            get { return _LogLevel; }



            set { _LogLevel = value; }
        } //eof prop LogLevel

        #endregion LogLevel



        #region LogOutput

        private int? _LogOutput;
        public int? LogOutput
        {



            get { return _LogOutput; }



            set { _LogOutput = value; }
        } //eof prop LogOutput

        #endregion LogOutput



        #region NumberDecimalDigits

        private int? _NumberDecimalDigits;
        public int? NumberDecimalDigits
        {



            get { return _NumberDecimalDigits; }



            set { _NumberDecimalDigits = value; }
        } //eof prop NumberDecimalDigits

        #endregion NumberDecimalDigits



        #region NumberDecimalSeparator

        private string _NumberDecimalSeparator;
        public string NumberDecimalSeparator
        {



            get { return _NumberDecimalSeparator; }



            set { _NumberDecimalSeparator = value; }
        } //eof prop NumberDecimalSeparator

        #endregion NumberDecimalSeparator



        #region NumberGroupSeparator

        private string _NumberGroupSeparator;
        public string NumberGroupSeparator
        {



            get { return _NumberGroupSeparator; }



            set { _NumberGroupSeparator = value; }
        } //eof prop NumberGroupSeparator

        #endregion NumberGroupSeparator



        #region EncryptionAlgorithm

        private string _EncryptionAlgorithm;
        public string EncryptionAlgorithm
        {



            get { return _EncryptionAlgorithm; }



            set { _EncryptionAlgorithm = value; }
        } //eof prop EncryptionAlgorithm

        #endregion EncryptionAlgorithm



        #region AppPort

        private int? _AppPort;
        public int? AppPort
        {



            get { return _AppPort; }



            set { _AppPort = value; }
        } //eof prop AppPort

        #endregion AppPort



        #region DebugDir

        private string _DebugDir;
        public string DebugDir
        {



            get { return _DebugDir; }



            set { _DebugDir = value; }
        } //eof prop DebugDir

        #endregion DebugDir



        #region LogDir

        private string _LogDir;
        public string LogDir
        {



            get { return _LogDir; }



            set { _LogDir = value; }
        } //eof prop LogDir

        #endregion LogDir



        #region LogMessageSuffix

        private string _LogMessageSuffix;
        public string LogMessageSuffix
        {



            get { return _LogMessageSuffix; }



            set { _LogMessageSuffix = value; }
        } //eof prop LogMessageSuffix

        #endregion LogMessageSuffix



        #region LogToFile

        private bool? _LogToFile;
        public bool? LogToFile
        {



            get { return _LogToFile; }



            set { _LogToFile = value; }
        } //eof prop LogToFile

        #endregion LogToFile



        #region LogToConsole

        private bool? _LogToConsole;
        public bool? LogToConsole
        {

            get { return _LogToConsole; }



            set { _LogToConsole = value; }
        } //eof prop LogToConsole

        #endregion LogToConsole



        #region LogToDb

        private bool? _LogToDb;
        public bool? LogToDb
        {



            get { return _LogToDb; }



            set { _LogToDb = value; }
        } //eof prop LogToDb

        #endregion LogToDb



        #region LogFileNameTimePattern

        private string _LogFileNameTimePattern;
        public string LogFileNameTimePattern
        {



            get { return _LogFileNameTimePattern; }



            set { _LogFileNameTimePattern = value; }
        } //eof prop LogFileNameTimePattern

        #endregion LogFileNameTimePattern



        #region LogFileNameSuffix

        private string _LogFileNameSuffix;
        public string LogFileNameSuffix
        {



            get { return _LogFileNameSuffix; }



            set { _LogFileNameSuffix = value; }
        } //eof prop LogFileNameSuffix

        #endregion LogFileNameSuffix



        #region DebugFileNameSuffix

        private string _DebugFileNameSuffix;
        public string DebugFileNameSuffix
        {



            get { return _DebugFileNameSuffix; }



            set { _DebugFileNameSuffix = value; }
        } //eof prop DebugFileNameSuffix

        #endregion DebugFileNameSuffix



        #region NumberOfStoredProceduresToRun

        private int? _NumberOfStoredProceduresToRun;
        public int? NumberOfStoredProceduresToRun
        {



            get { return _NumberOfStoredProceduresToRun; }



            set { _NumberOfStoredProceduresToRun = value; }
        } //eof prop NumberOfStoredProceduresToRun

        #endregion NumberOfStoredProceduresToRun



        #region DataExtractDir

        private string _DataExtractDir;
        public string DataExtractDir
        {



            get { return _DataExtractDir; }



            set { _DataExtractDir = value; }
        } //eof prop DataExtractDir

        #endregion DataExtractDir









        #endregion FieldsAndProps


        #region Constructor

        public AppInstSettings(System.Data.DataRow dr)
        {







            #region AppInstSettingsId

            if (dr.Table.Columns.Contains("AppInstSettingsId") &&



dr["AppInstSettingsId"] != null && !(dr["AppInstSettingsId"] is DBNull))
                this.AppInstSettingsId = System.Convert.ToInt16(dr["AppInstSettingsId"]);




            #endregion AppInstSettingsId








            #region AppName

            if (dr.Table.Columns.Contains("AppName") &&



dr["AppName"] != null && !(dr["AppName"] is DBNull))
                this.AppName = System.Convert.ToString(dr["AppName"]);




            #endregion AppName








            #region CultureInfo

            if (dr.Table.Columns.Contains("CultureInfo") &&



dr["CultureInfo"] != null && !(dr["CultureInfo"] is DBNull))
                this.CultureInfo = System.Convert.ToString(dr["CultureInfo"]);




            #endregion CultureInfo








            #region CurrencyDecimalDigits

            if (dr.Table.Columns.Contains("CurrencyDecimalDigits") &&



dr["CurrencyDecimalDigits"] != null && !(dr["CurrencyDecimalDigits"] is DBNull))
                this.CurrencyDecimalDigits = System.Convert.ToInt32(dr["CurrencyDecimalDigits"]);




            #endregion CurrencyDecimalDigits








            #region FlagEncryptErrorMessages

            if (dr.Table.Columns.Contains("FlagEncryptErrorMessages") &&



dr["FlagEncryptErrorMessages"] != null && !(dr["FlagEncryptErrorMessages"] is DBNull))
                this.FlagEncryptErrorMessages = System.Convert.ToBoolean(dr["FlagEncryptErrorMessages"]);




            #endregion FlagEncryptErrorMessages








            #region GuiLanguage

            if (dr.Table.Columns.Contains("GuiLanguage") &&



dr["GuiLanguage"] != null && !(dr["GuiLanguage"] is DBNull))
                this.GuiLanguage = System.Convert.ToString(dr["GuiLanguage"]);




            #endregion GuiLanguage








            #region LogLevel

            if (dr.Table.Columns.Contains("LogLevel") &&



dr["LogLevel"] != null && !(dr["LogLevel"] is DBNull))
                this.LogLevel = System.Convert.ToInt32(dr["LogLevel"]);




            #endregion LogLevel








            #region LogOutput

            if (dr.Table.Columns.Contains("LogOutput") &&



dr["LogOutput"] != null && !(dr["LogOutput"] is DBNull))
                this.LogOutput = System.Convert.ToInt32(dr["LogOutput"]);




            #endregion LogOutput








            #region NumberDecimalDigits

            if (dr.Table.Columns.Contains("NumberDecimalDigits") &&



dr["NumberDecimalDigits"] != null && !(dr["NumberDecimalDigits"] is DBNull))
                this.NumberDecimalDigits = System.Convert.ToInt32(dr["NumberDecimalDigits"]);




            #endregion NumberDecimalDigits








            #region NumberDecimalSeparator

            if (dr.Table.Columns.Contains("NumberDecimalSeparator") &&



dr["NumberDecimalSeparator"] != null && !(dr["NumberDecimalSeparator"] is DBNull))
                this.NumberDecimalSeparator = System.Convert.ToString(dr["NumberDecimalSeparator"]);




            #endregion NumberDecimalSeparator








            #region NumberGroupSeparator

            if (dr.Table.Columns.Contains("NumberGroupSeparator") &&



dr["NumberGroupSeparator"] != null && !(dr["NumberGroupSeparator"] is DBNull))
                this.NumberGroupSeparator = System.Convert.ToString(dr["NumberGroupSeparator"]);




            #endregion NumberGroupSeparator








            #region EncryptionAlgorithm

            if (dr.Table.Columns.Contains("EncryptionAlgorithm") &&



dr["EncryptionAlgorithm"] != null && !(dr["EncryptionAlgorithm"] is DBNull))
                this.EncryptionAlgorithm = System.Convert.ToString(dr["EncryptionAlgorithm"]);




            #endregion EncryptionAlgorithm








            #region AppPort

            if (dr.Table.Columns.Contains("AppPort") &&



dr["AppPort"] != null && !(dr["AppPort"] is DBNull))
                this.AppPort = System.Convert.ToInt32(dr["AppPort"]);




            #endregion AppPort








            #region DebugDir

            if (dr.Table.Columns.Contains("DebugDir") &&



dr["DebugDir"] != null && !(dr["DebugDir"] is DBNull))
                this.DebugDir = System.Convert.ToString(dr["DebugDir"]);




            #endregion DebugDir








            #region LogDir

            if (dr.Table.Columns.Contains("LogDir") &&



dr["LogDir"] != null && !(dr["LogDir"] is DBNull))
                this.LogDir = System.Convert.ToString(dr["LogDir"]);




            #endregion LogDir








            #region LogMessageSuffix

            if (dr.Table.Columns.Contains("LogMessageSuffix") &&



dr["LogMessageSuffix"] != null && !(dr["LogMessageSuffix"] is DBNull))
                this.LogMessageSuffix = System.Convert.ToString(dr["LogMessageSuffix"]);




            #endregion LogMessageSuffix








            #region LogToFile

            if (dr.Table.Columns.Contains("LogToFile") &&



dr["LogToFile"] != null && !(dr["LogToFile"] is DBNull))
                this.LogToFile = System.Convert.ToBoolean(dr["LogToFile"]);




            #endregion LogToFile








            #region LogToConsole

            if (dr.Table.Columns.Contains("LogToConsole") &&



dr["LogToConsole"] != null && !(dr["LogToConsole"] is DBNull))
                this.LogToConsole = System.Convert.ToBoolean(dr["LogToConsole"]);




            #endregion LogToConsole








            #region LogToDb

            if (dr.Table.Columns.Contains("LogToDb") &&



dr["LogToDb"] != null && !(dr["LogToDb"] is DBNull))
                this.LogToDb = System.Convert.ToBoolean(dr["LogToDb"]);




            #endregion LogToDb








            #region LogFileNameTimePattern

            if (dr.Table.Columns.Contains("LogFileNameTimePattern") &&



dr["LogFileNameTimePattern"] != null && !(dr["LogFileNameTimePattern"] is DBNull))
                this.LogFileNameTimePattern = System.Convert.ToString(dr["LogFileNameTimePattern"]);




            #endregion LogFileNameTimePattern








            #region LogFileNameSuffix

            if (dr.Table.Columns.Contains("LogFileNameSuffix") &&



dr["LogFileNameSuffix"] != null && !(dr["LogFileNameSuffix"] is DBNull))
                this.LogFileNameSuffix = System.Convert.ToString(dr["LogFileNameSuffix"]);




            #endregion LogFileNameSuffix








            #region DebugFileNameSuffix

            if (dr.Table.Columns.Contains("DebugFileNameSuffix") &&



dr["DebugFileNameSuffix"] != null && !(dr["DebugFileNameSuffix"] is DBNull))
                this.DebugFileNameSuffix = System.Convert.ToString(dr["DebugFileNameSuffix"]);




            #endregion DebugFileNameSuffix








            #region NumberOfStoredProceduresToRun

            if (dr.Table.Columns.Contains("NumberOfStoredProceduresToRun") &&



dr["NumberOfStoredProceduresToRun"] != null && !(dr["NumberOfStoredProceduresToRun"] is DBNull))
                this.NumberOfStoredProceduresToRun = System.Convert.ToInt32(dr["NumberOfStoredProceduresToRun"]);




            #endregion NumberOfStoredProceduresToRun








            #region DataExtractDir

            if (dr.Table.Columns.Contains("DataExtractDir") &&



dr["DataExtractDir"] != null && !(dr["DataExtractDir"] is DBNull))
                this.DataExtractDir = System.Convert.ToString(dr["DataExtractDir"]);




            #endregion DataExtractDir




        } //eof const forAppInstSettings

        #endregion Constructor





        #region DumpDataAsHtml


        public string DumpAppInstSettingsDataAsHtml()
        {

            string strDump = String.Empty;
            System.Text.StringBuilder objStringBuilder = new System.Text.StringBuilder();
            objStringBuilder.AppendLine("<table>");




            #region AppInstSettingsId


            objStringBuilder.AppendLine("<tr>");
            objStringBuilder.AppendLine("<td> AppInstSettingsId <b>--- " + System.Convert.ToString(this.AppInstSettingsId) + "</b> </td>");




            objStringBuilder.AppendLine("</tr>");

            #endregion AppInstSettingsId





            #region AppName


            objStringBuilder.AppendLine("<tr>");
            objStringBuilder.AppendLine("<td> AppName <b>--- " + System.Convert.ToString(this.AppName) + "</b> </td>");




            objStringBuilder.AppendLine("</tr>");

            #endregion AppName





            #region CultureInfo


            objStringBuilder.AppendLine("<tr>");
            objStringBuilder.AppendLine("<td> CultureInfo <b>--- " + System.Convert.ToString(this.CultureInfo) + "</b> </td>");




            objStringBuilder.AppendLine("</tr>");

            #endregion CultureInfo





            #region CurrencyDecimalDigits


            objStringBuilder.AppendLine("<tr>");
            objStringBuilder.AppendLine("<td> CurrencyDecimalDigits <b>--- " + System.Convert.ToString(this.CurrencyDecimalDigits) + "</b> </td>");




            objStringBuilder.AppendLine("</tr>");

            #endregion CurrencyDecimalDigits





            #region FlagEncryptErrorMessages


            objStringBuilder.AppendLine("<tr>");
            objStringBuilder.AppendLine("<td> FlagEncryptErrorMessages <b>--- " + System.Convert.ToString(this.FlagEncryptErrorMessages) + "</b> </td>");




            objStringBuilder.AppendLine("</tr>");

            #endregion FlagEncryptErrorMessages





            #region GuiLanguage


            objStringBuilder.AppendLine("<tr>");
            objStringBuilder.AppendLine("<td> GuiLanguage <b>--- " + System.Convert.ToString(this.GuiLanguage) + "</b> </td>");




            objStringBuilder.AppendLine("</tr>");

            #endregion GuiLanguage





            #region LogLevel


            objStringBuilder.AppendLine("<tr>");
            objStringBuilder.AppendLine("<td> LogLevel <b>--- " + System.Convert.ToString(this.LogLevel) + "</b> </td>");




            objStringBuilder.AppendLine("</tr>");

            #endregion LogLevel





            #region LogOutput


            objStringBuilder.AppendLine("<tr>");
            objStringBuilder.AppendLine("<td> LogOutput <b>--- " + System.Convert.ToString(this.LogOutput) + "</b> </td>");




            objStringBuilder.AppendLine("</tr>");

            #endregion LogOutput





            #region NumberDecimalDigits


            objStringBuilder.AppendLine("<tr>");
            objStringBuilder.AppendLine("<td> NumberDecimalDigits <b>--- " + System.Convert.ToString(this.NumberDecimalDigits) + "</b> </td>");




            objStringBuilder.AppendLine("</tr>");

            #endregion NumberDecimalDigits





            #region NumberDecimalSeparator


            objStringBuilder.AppendLine("<tr>");
            objStringBuilder.AppendLine("<td> NumberDecimalSeparator <b>--- " + System.Convert.ToString(this.NumberDecimalSeparator) + "</b> </td>");




            objStringBuilder.AppendLine("</tr>");

            #endregion NumberDecimalSeparator





            #region NumberGroupSeparator


            objStringBuilder.AppendLine("<tr>");
            objStringBuilder.AppendLine("<td> NumberGroupSeparator <b>--- " + System.Convert.ToString(this.NumberGroupSeparator) + "</b> </td>");




            objStringBuilder.AppendLine("</tr>");

            #endregion NumberGroupSeparator





            #region EncryptionAlgorithm


            objStringBuilder.AppendLine("<tr>");
            objStringBuilder.AppendLine("<td> EncryptionAlgorithm <b>--- " + System.Convert.ToString(this.EncryptionAlgorithm) + "</b> </td>");




            objStringBuilder.AppendLine("</tr>");

            #endregion EncryptionAlgorithm





            #region AppPort


            objStringBuilder.AppendLine("<tr>");
            objStringBuilder.AppendLine("<td> AppPort <b>--- " + System.Convert.ToString(this.AppPort) + "</b> </td>");




            objStringBuilder.AppendLine("</tr>");

            #endregion AppPort





            #region DebugDir


            objStringBuilder.AppendLine("<tr>");
            objStringBuilder.AppendLine("<td> DebugDir <b>--- " + System.Convert.ToString(this.DebugDir) + "</b> </td>");




            objStringBuilder.AppendLine("</tr>");

            #endregion DebugDir





            #region LogDir


            objStringBuilder.AppendLine("<tr>");
            objStringBuilder.AppendLine("<td> LogDir <b>--- " + System.Convert.ToString(this.LogDir) + "</b> </td>");




            objStringBuilder.AppendLine("</tr>");

            #endregion LogDir





            #region LogMessageSuffix


            objStringBuilder.AppendLine("<tr>");
            objStringBuilder.AppendLine("<td> LogMessageSuffix <b>--- " + System.Convert.ToString(this.LogMessageSuffix) + "</b> </td>");




            objStringBuilder.AppendLine("</tr>");

            #endregion LogMessageSuffix





            #region LogToFile


            objStringBuilder.AppendLine("<tr>");
            objStringBuilder.AppendLine("<td> LogToFile <b>--- " + System.Convert.ToString(this.LogToFile) + "</b> </td>");




            objStringBuilder.AppendLine("</tr>");

            #endregion LogToFile





            #region LogToConsole


            objStringBuilder.AppendLine("<tr>");
            objStringBuilder.AppendLine("<td> LogToConsole <b>--- " + System.Convert.ToString(this.LogToConsole) + "</b> </td>");




            objStringBuilder.AppendLine("</tr>");

            #endregion LogToConsole





            #region LogToDb


            objStringBuilder.AppendLine("<tr>");
            objStringBuilder.AppendLine("<td> LogToDb <b>--- " + System.Convert.ToString(this.LogToDb) + "</b> </td>");




            objStringBuilder.AppendLine("</tr>");

            #endregion LogToDb





            #region LogFileNameTimePattern


            objStringBuilder.AppendLine("<tr>");
            objStringBuilder.AppendLine("<td> LogFileNameTimePattern <b>--- " + System.Convert.ToString(this.LogFileNameTimePattern) + "</b> </td>");




            objStringBuilder.AppendLine("</tr>");

            #endregion LogFileNameTimePattern





            #region LogFileNameSuffix


            objStringBuilder.AppendLine("<tr>");
            objStringBuilder.AppendLine("<td> LogFileNameSuffix <b>--- " + System.Convert.ToString(this.LogFileNameSuffix) + "</b> </td>");




            objStringBuilder.AppendLine("</tr>");

            #endregion LogFileNameSuffix





            #region DebugFileNameSuffix


            objStringBuilder.AppendLine("<tr>");
            objStringBuilder.AppendLine("<td> DebugFileNameSuffix <b>--- " + System.Convert.ToString(this.DebugFileNameSuffix) + "</b> </td>");




            objStringBuilder.AppendLine("</tr>");

            #endregion DebugFileNameSuffix





            #region NumberOfStoredProceduresToRun


            objStringBuilder.AppendLine("<tr>");
            objStringBuilder.AppendLine("<td> NumberOfStoredProceduresToRun <b>--- " + System.Convert.ToString(this.NumberOfStoredProceduresToRun) + "</b> </td>");




            objStringBuilder.AppendLine("</tr>");

            #endregion NumberOfStoredProceduresToRun





            #region DataExtractDir


            objStringBuilder.AppendLine("<tr>");
            objStringBuilder.AppendLine("<td> DataExtractDir <b>--- " + System.Convert.ToString(this.DataExtractDir) + "</b> </td>");




            objStringBuilder.AppendLine("</tr>");

            #endregion DataExtractDir





            //close the row tag 
            objStringBuilder.AppendLine("</table>");
            strDump = objStringBuilder.ToString();
            return strDump;
        } //eof method 

        #endregion DumpDataAsHtml





        #region DumpDataAsStr


        public string DumpAppInstSettingsDataAsStr()
        {

            string strDump = String.Empty;
            System.Text.StringBuilder objStringBuilder = new System.Text.StringBuilder();
            objStringBuilder.AppendLine("\n");




            #region AppInstSettingsId


            objStringBuilder.AppendLine("\t");
            objStringBuilder.AppendLine("\t AppInstSettingsId \t : " + System.Convert.ToString(this.AppInstSettingsId) + "\t");




            objStringBuilder.AppendLine("\n");

            #endregion AppInstSettingsId





            #region AppName


            objStringBuilder.AppendLine("\t");
            objStringBuilder.AppendLine("\t AppName \t : " + System.Convert.ToString(this.AppName) + "\t");




            objStringBuilder.AppendLine("\n");

            #endregion AppName





            #region CultureInfo


            objStringBuilder.AppendLine("\t");
            objStringBuilder.AppendLine("\t CultureInfo \t : " + System.Convert.ToString(this.CultureInfo) + "\t");




            objStringBuilder.AppendLine("\n");

            #endregion CultureInfo





            #region CurrencyDecimalDigits


            objStringBuilder.AppendLine("\t");
            objStringBuilder.AppendLine("\t CurrencyDecimalDigits \t : " + System.Convert.ToString(this.CurrencyDecimalDigits) + "\t");




            objStringBuilder.AppendLine("\n");

            #endregion CurrencyDecimalDigits





            #region FlagEncryptErrorMessages


            objStringBuilder.AppendLine("\t");
            objStringBuilder.AppendLine("\t FlagEncryptErrorMessages \t : " + System.Convert.ToString(this.FlagEncryptErrorMessages) + "\t");




            objStringBuilder.AppendLine("\n");

            #endregion FlagEncryptErrorMessages





            #region GuiLanguage


            objStringBuilder.AppendLine("\t");
            objStringBuilder.AppendLine("\t GuiLanguage \t : " + System.Convert.ToString(this.GuiLanguage) + "\t");




            objStringBuilder.AppendLine("\n");

            #endregion GuiLanguage





            #region LogLevel


            objStringBuilder.AppendLine("\t");
            objStringBuilder.AppendLine("\t LogLevel \t : " + System.Convert.ToString(this.LogLevel) + "\t");




            objStringBuilder.AppendLine("\n");

            #endregion LogLevel





            #region LogOutput


            objStringBuilder.AppendLine("\t");
            objStringBuilder.AppendLine("\t LogOutput \t : " + System.Convert.ToString(this.LogOutput) + "\t");




            objStringBuilder.AppendLine("\n");

            #endregion LogOutput





            #region NumberDecimalDigits


            objStringBuilder.AppendLine("\t");
            objStringBuilder.AppendLine("\t NumberDecimalDigits \t : " + System.Convert.ToString(this.NumberDecimalDigits) + "\t");




            objStringBuilder.AppendLine("\n");

            #endregion NumberDecimalDigits





            #region NumberDecimalSeparator


            objStringBuilder.AppendLine("\t");
            objStringBuilder.AppendLine("\t NumberDecimalSeparator \t : " + System.Convert.ToString(this.NumberDecimalSeparator) + "\t");




            objStringBuilder.AppendLine("\n");

            #endregion NumberDecimalSeparator





            #region NumberGroupSeparator


            objStringBuilder.AppendLine("\t");
            objStringBuilder.AppendLine("\t NumberGroupSeparator \t : " + System.Convert.ToString(this.NumberGroupSeparator) + "\t");




            objStringBuilder.AppendLine("\n");

            #endregion NumberGroupSeparator





            #region EncryptionAlgorithm


            objStringBuilder.AppendLine("\t");
            objStringBuilder.AppendLine("\t EncryptionAlgorithm \t : " + System.Convert.ToString(this.EncryptionAlgorithm) + "\t");




            objStringBuilder.AppendLine("\n");

            #endregion EncryptionAlgorithm





            #region AppPort


            objStringBuilder.AppendLine("\t");
            objStringBuilder.AppendLine("\t AppPort \t : " + System.Convert.ToString(this.AppPort) + "\t");




            objStringBuilder.AppendLine("\n");

            #endregion AppPort





            #region DebugDir


            objStringBuilder.AppendLine("\t");
            objStringBuilder.AppendLine("\t DebugDir \t : " + System.Convert.ToString(this.DebugDir) + "\t");




            objStringBuilder.AppendLine("\n");

            #endregion DebugDir





            #region LogDir


            objStringBuilder.AppendLine("\t");
            objStringBuilder.AppendLine("\t LogDir \t : " + System.Convert.ToString(this.LogDir) + "\t");




            objStringBuilder.AppendLine("\n");

            #endregion LogDir





            #region LogMessageSuffix


            objStringBuilder.AppendLine("\t");
            objStringBuilder.AppendLine("\t LogMessageSuffix \t : " + System.Convert.ToString(this.LogMessageSuffix) + "\t");




            objStringBuilder.AppendLine("\n");

            #endregion LogMessageSuffix





            #region LogToFile


            objStringBuilder.AppendLine("\t");
            objStringBuilder.AppendLine("\t LogToFile \t : " + System.Convert.ToString(this.LogToFile) + "\t");




            objStringBuilder.AppendLine("\n");

            #endregion LogToFile





            #region LogToConsole


            objStringBuilder.AppendLine("\t");
            objStringBuilder.AppendLine("\t LogToConsole \t : " + System.Convert.ToString(this.LogToConsole) + "\t");




            objStringBuilder.AppendLine("\n");

            #endregion LogToConsole





            #region LogToDb


            objStringBuilder.AppendLine("\t");
            objStringBuilder.AppendLine("\t LogToDb \t : " + System.Convert.ToString(this.LogToDb) + "\t");




            objStringBuilder.AppendLine("\n");

            #endregion LogToDb





            #region LogFileNameTimePattern


            objStringBuilder.AppendLine("\t");
            objStringBuilder.AppendLine("\t LogFileNameTimePattern \t : " + System.Convert.ToString(this.LogFileNameTimePattern) + "\t");




            objStringBuilder.AppendLine("\n");

            #endregion LogFileNameTimePattern





            #region LogFileNameSuffix


            objStringBuilder.AppendLine("\t");
            objStringBuilder.AppendLine("\t LogFileNameSuffix \t : " + System.Convert.ToString(this.LogFileNameSuffix) + "\t");




            objStringBuilder.AppendLine("\n");

            #endregion LogFileNameSuffix





            #region DebugFileNameSuffix


            objStringBuilder.AppendLine("\t");
            objStringBuilder.AppendLine("\t DebugFileNameSuffix \t : " + System.Convert.ToString(this.DebugFileNameSuffix) + "\t");




            objStringBuilder.AppendLine("\n");

            #endregion DebugFileNameSuffix





            #region NumberOfStoredProceduresToRun


            objStringBuilder.AppendLine("\t");
            objStringBuilder.AppendLine("\t NumberOfStoredProceduresToRun \t : " + System.Convert.ToString(this.NumberOfStoredProceduresToRun) + "\t");




            objStringBuilder.AppendLine("\n");

            #endregion NumberOfStoredProceduresToRun





            #region DataExtractDir


            objStringBuilder.AppendLine("\t");
            objStringBuilder.AppendLine("\t DataExtractDir \t : " + System.Convert.ToString(this.DataExtractDir) + "\t");




            objStringBuilder.AppendLine("\n");

            #endregion DataExtractDir





            //close the row tag 
            objStringBuilder.AppendLine("\n");
            strDump = objStringBuilder.ToString();
            return strDump;
        } //eof method 

        #endregion DumpDataAsStr





        #region Parameterless Constructor

        public AppInstSettings()
        { } //eof Parameterless const forAppInstSettings

        #endregion Parameterless Constructor


        #region LoadData

        public void LoadData(System.Data.DataRow dr)
        {



            #region AppInstSettingsId

            if (dr["AppInstSettingsId"] != null && !(dr["AppInstSettingsId"] is DBNull))
            {



                this.AppInstSettingsId = System.Convert.ToInt16(dr["AppInstSettingsId"]);
            }

            #endregion AppInstSettingsId



            #region AppName

            if (dr["AppName"] != null && !(dr["AppName"] is DBNull))
            {



                this.AppName = System.Convert.ToString(dr["AppName"]);
            }

            #endregion AppName



            #region CultureInfo

            if (dr["CultureInfo"] != null && !(dr["CultureInfo"] is DBNull))
            {



                this.CultureInfo = System.Convert.ToString(dr["CultureInfo"]);
            }

            #endregion CultureInfo



            #region CurrencyDecimalDigits

            if (dr["CurrencyDecimalDigits"] != null && !(dr["CurrencyDecimalDigits"] is DBNull))
            {



                this.CurrencyDecimalDigits = System.Convert.ToInt32(dr["CurrencyDecimalDigits"]);
            }

            #endregion CurrencyDecimalDigits



            #region FlagEncryptErrorMessages

            if (dr["FlagEncryptErrorMessages"] != null && !(dr["FlagEncryptErrorMessages"] is DBNull))
            {



                this.FlagEncryptErrorMessages = System.Convert.ToBoolean(dr["FlagEncryptErrorMessages"]);
            }

            #endregion FlagEncryptErrorMessages



            #region GuiLanguage

            if (dr["GuiLanguage"] != null && !(dr["GuiLanguage"] is DBNull))
            {



                this.GuiLanguage = System.Convert.ToString(dr["GuiLanguage"]);
            }

            #endregion GuiLanguage



            #region LogLevel

            if (dr["LogLevel"] != null && !(dr["LogLevel"] is DBNull))
            {



                this.LogLevel = System.Convert.ToInt32(dr["LogLevel"]);
            }

            #endregion LogLevel



            #region LogOutput

            if (dr["LogOutput"] != null && !(dr["LogOutput"] is DBNull))
            {



                this.LogOutput = System.Convert.ToInt32(dr["LogOutput"]);
            }

            #endregion LogOutput



            #region NumberDecimalDigits

            if (dr["NumberDecimalDigits"] != null && !(dr["NumberDecimalDigits"] is DBNull))
            {



                this.NumberDecimalDigits = System.Convert.ToInt32(dr["NumberDecimalDigits"]);
            }

            #endregion NumberDecimalDigits



            #region NumberDecimalSeparator

            if (dr["NumberDecimalSeparator"] != null && !(dr["NumberDecimalSeparator"] is DBNull))
            {



                this.NumberDecimalSeparator = System.Convert.ToString(dr["NumberDecimalSeparator"]);
            }

            #endregion NumberDecimalSeparator



            #region NumberGroupSeparator

            if (dr["NumberGroupSeparator"] != null && !(dr["NumberGroupSeparator"] is DBNull))
            {



                this.NumberGroupSeparator = System.Convert.ToString(dr["NumberGroupSeparator"]);
            }

            #endregion NumberGroupSeparator



            #region EncryptionAlgorithm

            if (dr["EncryptionAlgorithm"] != null && !(dr["EncryptionAlgorithm"] is DBNull))
            {



                this.EncryptionAlgorithm = System.Convert.ToString(dr["EncryptionAlgorithm"]);
            }

            #endregion EncryptionAlgorithm



            #region AppPort

            if (dr["AppPort"] != null && !(dr["AppPort"] is DBNull))
            {



                this.AppPort = System.Convert.ToInt32(dr["AppPort"]);
            }

            #endregion AppPort



            #region DebugDir

            if (dr["DebugDir"] != null && !(dr["DebugDir"] is DBNull))
            {



                this.DebugDir = System.Convert.ToString(dr["DebugDir"]);
            }

            #endregion DebugDir



            #region LogDir

            if (dr["LogDir"] != null && !(dr["LogDir"] is DBNull))
            {



                this.LogDir = System.Convert.ToString(dr["LogDir"]);
            }

            #endregion LogDir



            #region LogMessageSuffix

            if (dr["LogMessageSuffix"] != null && !(dr["LogMessageSuffix"] is DBNull))
            {



                this.LogMessageSuffix = System.Convert.ToString(dr["LogMessageSuffix"]);
            }

            #endregion LogMessageSuffix



            #region LogToFile

            if (dr["LogToFile"] != null && !(dr["LogToFile"] is DBNull))
            {



                this.LogToFile = System.Convert.ToBoolean(dr["LogToFile"]);
            }

            #endregion LogToFile



            #region LogToConsole

            if (dr["LogToConsole"] != null && !(dr["LogToConsole"] is DBNull))
            {



                this.LogToConsole = System.Convert.ToBoolean(dr["LogToConsole"]);
            }

            #endregion LogToConsole



            #region LogToDb

            if (dr["LogToDb"] != null && !(dr["LogToDb"] is DBNull))
            {



                this.LogToDb = System.Convert.ToBoolean(dr["LogToDb"]);
            }

            #endregion LogToDb



            #region LogFileNameTimePattern

            if (dr["LogFileNameTimePattern"] != null && !(dr["LogFileNameTimePattern"] is DBNull))
            {



                this.LogFileNameTimePattern = System.Convert.ToString(dr["LogFileNameTimePattern"]);
            }

            #endregion LogFileNameTimePattern



            #region LogFileNameSuffix

            if (dr["LogFileNameSuffix"] != null && !(dr["LogFileNameSuffix"] is DBNull))
            {



                this.LogFileNameSuffix = System.Convert.ToString(dr["LogFileNameSuffix"]);
            }

            #endregion LogFileNameSuffix



            #region DebugFileNameSuffix

            if (dr["DebugFileNameSuffix"] != null && !(dr["DebugFileNameSuffix"] is DBNull))
            {



                this.DebugFileNameSuffix = System.Convert.ToString(dr["DebugFileNameSuffix"]);
            }

            #endregion DebugFileNameSuffix



            #region NumberOfStoredProceduresToRun

            if (dr["NumberOfStoredProceduresToRun"] != null && !(dr["NumberOfStoredProceduresToRun"] is DBNull))
            {



                this.NumberOfStoredProceduresToRun = System.Convert.ToInt32(dr["NumberOfStoredProceduresToRun"]);
            }

            #endregion NumberOfStoredProceduresToRun



            #region DataExtractDir

            if (dr["DataExtractDir"] != null && !(dr["DataExtractDir"] is DBNull))
            {



                this.DataExtractDir = System.Convert.ToString(dr["DataExtractDir"]);
            }

            #endregion DataExtractDir



        } //eof LoadData forAppInstSettings

        #endregion LoadData




        #region DataTableToList
        /// <summary>
        /// Returns a list of AppInstSettingss by passed datatable
        /// </summary>
        /// <param name="dt"> the datatable holding the list data </param>



        /// <returns>the list of AppInstSettingss </returns>
        public static System.Collections.Generic.List<MinConsole.Gaf.Model.AppInstSettings> DataTableToList(System.Data.DataTable dt)
        {



            System.Collections.Generic.List<MinConsole.Gaf.Model.AppInstSettings> listAppInstSettingss =
             new System.Collections.Generic.List<MinConsole.Gaf.Model.AppInstSettings>(dt.Rows.Count);



            //if null object is passed return simply a new list to avoid null pointer exception
            if (dt == null)
            { return listAppInstSettingss; }



            foreach (System.Data.DataRow dr in dt.Rows)
            {
                MinConsole.Gaf.Model.AppInstSettings _AppInstSettings = new MinConsole.Gaf.Model.AppInstSettings(dr);
                listAppInstSettingss.Add(_AppInstSettings);
            } //eof foreach 



            return listAppInstSettingss;
        } //eof method 
        #endregion DataTableToList




        #region LoadDataFromIniFile

        public void LoadDataFromIniFile(MinConsole.IniParser.IniData parsedData, string sectionName)
        {



            #region AppInstSettingsId

            if (parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("AppInstSettingsId") != null)
            {



                _AppInstSettingsId = System.Convert.ToInt16(parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("AppInstSettingsId").Value);
            }

            #endregion AppInstSettingsId



            #region AppName

            if (parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("AppName") != null)
            {



                _AppName = System.Convert.ToString(parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("AppName").Value);
            }

            #endregion AppName



            #region CultureInfo

            if (parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("CultureInfo") != null)
            {



                _CultureInfo = System.Convert.ToString(parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("CultureInfo").Value);
            }

            #endregion CultureInfo



            #region CurrencyDecimalDigits

            if (parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("CurrencyDecimalDigits") != null)
            {



                _CurrencyDecimalDigits = System.Convert.ToInt32(parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("CurrencyDecimalDigits").Value);
            }

            #endregion CurrencyDecimalDigits



            #region FlagEncryptErrorMessages

            if (parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("FlagEncryptErrorMessages") != null)
            {



                _FlagEncryptErrorMessages = System.Convert.ToBoolean(
                    System.Convert.ToInt16(parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("FlagEncryptErrorMessages").Value));
            }

            #endregion FlagEncryptErrorMessages



            #region LogLevel

            if (parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("LogLevel") != null)
            {



                _LogLevel = System.Convert.ToInt32(parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("LogLevel").Value);
            }

            #endregion LogLevel



            #region LogOutput

            if (parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("LogOutput") != null)
            {



                _LogOutput = System.Convert.ToInt32(parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("LogOutput").Value);
            }

            #endregion LogOutput



            #region NumberDecimalDigits

            if (parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("NumberDecimalDigits") != null)
            {



                _NumberDecimalDigits = System.Convert.ToInt32(parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("NumberDecimalDigits").Value);
            }

            #endregion NumberDecimalDigits



            #region NumberDecimalSeparator

            if (parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("NumberDecimalSeparator") != null)
            {



                _NumberDecimalSeparator = System.Convert.ToString(parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("NumberDecimalSeparator").Value);
            }

            #endregion NumberDecimalSeparator



            #region NumberGroupSeparator

            if (parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("NumberGroupSeparator") != null)
            {



                _NumberGroupSeparator = System.Convert.ToString(parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("NumberGroupSeparator").Value);
            }

            #endregion NumberGroupSeparator



            #region EncryptionAlgorithm

            if (parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("EncryptionAlgorithm") != null)
            {



                _EncryptionAlgorithm = System.Convert.ToString(parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("EncryptionAlgorithm").Value);
            }

            #endregion EncryptionAlgorithm



            #region DebugDir

            if (parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("DebugDir") != null)
            {



                _DebugDir = System.Convert.ToString(parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("DebugDir").Value);
            }

            #endregion DebugDir



            #region LogDir

            if (parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("LogDir") != null)
            {



                _LogDir = System.Convert.ToString(parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("LogDir").Value);
            }

            #endregion LogDir



            #region LogMessageSuffix

            if (parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("LogMessageSuffix") != null)
            {



                _LogMessageSuffix = System.Convert.ToString(parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("LogMessageSuffix").Value);
            }

            #endregion LogMessageSuffix



            #region LogToFile

            if (parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("LogToFile") != null)
            {



                _LogToFile = System.Convert.ToBoolean(
                    System.Convert.ToInt16( parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("LogToFile").Value));
            }

            #endregion LogToFile



            #region LogToConsole

            if (parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("LogToConsole") != null)
            {



                _LogToConsole = System.Convert.ToBoolean(
                    System.Convert.ToInt16(parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("LogToConsole").Value));
            }

            #endregion LogToConsole



            #region LogToDb

            if (parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("LogToDb") != null)
            {



                _LogToDb = System.Convert.ToBoolean(System.Convert.ToInt16(parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("LogToDb").Value));
            }

            #endregion LogToDb



            #region LogFileNameTimePattern

            if (parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("LogFileNameTimePattern") != null)
            {



                _LogFileNameTimePattern = System.Convert.ToString(parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("LogFileNameTimePattern").Value);
            }

            #endregion LogFileNameTimePattern



            #region LogFileNameSuffix

            if (parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("LogFileNameSuffix") != null)
            {



                _LogFileNameSuffix = System.Convert.ToString(parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("LogFileNameSuffix").Value);
            }

            #endregion LogFileNameSuffix



            #region DebugFileNameSuffix

            if (parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("DebugFileNameSuffix") != null)
            {



                _DebugFileNameSuffix = System.Convert.ToString(parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("DebugFileNameSuffix").Value);
            }

            #endregion DebugFileNameSuffix



            #region NumberOfStoredProceduresToRun

            if (parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("NumberOfStoredProceduresToRun") != null)
            {



                _NumberOfStoredProceduresToRun = System.Convert.ToInt32(parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("NumberOfStoredProceduresToRun").Value);
            }

            #endregion NumberOfStoredProceduresToRun



            #region DataExtractDir

            if (parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("DataExtractDir") != null)
            {



                _DataExtractDir = System.Convert.ToString(parsedData.Sections.GetSectionData(sectionName).Keys.GetKeyData("DataExtractDir").Value);
            }

            #endregion DataExtractDir




        } //eof method LoadDataFromIniFile

        #endregion LoadDataFromIniFile

    } //eof class AppInstSettings

} //eof namespace  

